package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ping
 * @since 2021-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DeviceMachineDts extends Model<DeviceMachineDts> {

    private static final long serialVersionUID=1L;

    @TableId(value = "dts_global_id", type = IdType.AUTO)
    private Integer dtsGlobalId;

    private Integer deviceId;

    /**
     * 总通道数，默认值为8
     */
    private Integer totalNum;

    /**
     * 扫描通道配置，每一位分别对应一个通道，默认为255（0xFF）
     */
    private Integer scanCfg;

    /**
     * 前端参考温度点对应的位置，默认为160m
     */
    private Integer refPlace;

    /**
     * 前端参考温度点的温度计算平均次数，默认为40
     */
    private Integer refAvgCnt;

    /**
     * 参考光纤长度，默认300m
     */
    private Integer refLen;

    /**
     * 激光器工作电流，默认60mA
     */
    private Integer laserCurrent;

    /**
     * 光源脉宽，默认10ns
     */
    private Integer pulseWidth;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


    @Override
    public Serializable pkVal() {
        return this.dtsGlobalId;
    }

}
